﻿using Library.Core.Domain.Repository;
using Synthesize.BaseSet.Domain.Aggregation.Dtos.Authority.Post;
using Synthesize.BaseSet.Domain.Aggregation.Entity.Authority;
using System;
using System.Linq.Expressions;
using System.Threading.Tasks;

namespace Synthesize.BaseSet.Domain.Repository.Authority
{
    public interface IPostRepository : IRepository<PostInfoEntity>
    {

        /// <summary>
        /// 根据名称获取分页信息
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="specification"></param>
        /// <param name="orderExp"></param>
        /// <param name="readOnly"></param>
        /// <returns></returns>
        Task<PageData<GetPostListOutDto>> GetPostPageList(int pageIndex, int pageSize, Expression<Func<PostInfoEntity, bool>> specification, (Expression<Func<GetPostListOutDto, dynamic>>, bool)[] orderExp, bool readOnly);

    }
}

